<?php
/**
 * Created by PhpStorm .
 * User: 杜磊磊
 * Date: 2020/7/12
 * Time: 15:12
 */
namespace app\admin\validate;

use think\Validate;

class Category extends Validate
{
    protected $rule =   [
        'pid'  => 'require',
        'name'   => 'require',

    ];

    protected $message  =   [
        'pid.require' => '父级分类必须',
        'name.require'     => '商品分类必须',
    ];
}